* {
    padding: 0;
    margin: 0;
}

//版心
@mixin container {
    width: 1200px;
    margin: 0 auto;
    // background-color: gold;
}

//文字样式
@mixin afonts {
    text-decoration: none;
    color: #000;
}

/* 头部 */
#head {
    @include container();
    height: 161px;
    display: flex;
    justify-content: space-around;
    align-items: center;

    .logo {
        height: 75px;
        display: flex;
        align-items: center;

        img {
            width: 75px;
            height: 75px;
        }

        .right {
            margin-left: 33px;
        }

        a {
            @include afonts();
        }

        h3 {
            font-size: 28px;
            font-weight: bold;
        }

        span {
            font-size: 9px;
        }
    }

    .search {
        width: 532px;
        height: 48px;
        position: relative;

        input[type="text"] {
            width: 100%;
            height: 100%;
            border: 2px solid rgb(67, 36, 12);
            border-radius: 24px;
            padding-left: 40px;
            font-size: 16px;
            box-sizing: border-box;
        }

        .iconfont {
            position: absolute;
            top: 12px;
            left: 12px;
            font-size: 25px;
            color: rgb(67, 36, 12);
        }

        input[type="submit"] {
            position: absolute;
            top: 4px;
            right: 6px;
            width: 124px;
            height: 40px;
            background-color: rgb(254, 228, 78);
            border: 0px solid #000;
            border-radius: 20px;
            cursor: pointer;
        }
    }

    .advantage {
        width: 182px;
        display: flex;
        justify-content: space-between;

        li {
            height: 60px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;

            img {
                width: 40px;
                height: 40px;
            }

            span {
                font-size: 12px;
                color: rgb(135, 122, 115);
            }
        }
    }
}

/* 主体 */
#main{
    background-color: rgb(246, 246, 246);
    // 顶部导航
    .bg {
        height: 46px;
        background-color: rgb(67, 36, 12);

        .topnav {
            @include container();
            display: flex;
            height: 46px;
            text-align: center;
            line-height: 46px;

            a,
            .first {
                height: 100%;
                display: inline-block;
            }

            a {
                width: 166px;
                color: #fff;

                &:hover {
                    background-color: rgb(254, 228, 78);
                    color: #000;
                }
            }

            .first {
                width: 220px;
                color: #000;
                background-color: rgb(254, 228, 78);
            }
        }
    }
}

/* 页脚 */
#foot {
    height: 240px;
    background-color: rgb(72, 72, 72);
    box-sizing: border-box;

    .top {
        @include container();
        display: flex;
        align-items: center;
        color: #fff;
        overflow: hidden;
        padding-top: 37px;
        box-sizing: border-box;

        img {
            width: 115px;
            height: 115px;
            border-radius: 20px;
            margin-left: 40px;
        }

        .mesg {
            width: 144px;
            height: 100px;
            text-align: center;
            display: flex;
            flex-direction: column;
            font-size: 36px;
            margin-left: 25px;
            margin-top: 15px;
            overflow: hidden;

            h3 {
                font-weight: bold;
            }

            span {
                font-size: 18px;
                margin-top: 7px;
            }
        }

        p {
            margin-left: 200px;
            font-size: 20px;

            a {
                color: #fff;
                margin-right: 10px;
            }
        }
    }

    .bottom {
        @include container();
        font-size: 18px;
        color: #fff;
        margin-top: 55px;
        display: flex;
        justify-content: center;
        align-items: center;

        img {
            width: 23px;
            height: 23px;
            margin-left: 5px;
            margin-right: 5px;
        }

        a {
            color: #fff;
        }
    }
}

/* 页尾 */
#bottom {
    height: 90px;
    text-align: center;
    padding-top: 5px;
    box-sizing: border-box;
}

// 回到顶部按钮
#toTop {
    button {
        width: 60px;
        height: 60px;
        background-color: rgb(254, 228, 78);
        border-radius: 30px;
        color: #fff;
        border: 0px solid #000;
        position: fixed;
        bottom: 50%;
        margin-bottom: -30px;
        right: 100px;
        cursor: pointer;
    }
}